<?php $this->load->view('header/standard'); ?>
<div id="main">
    <div class="container">
        <div class="span-17 colborder" id="content">
            <?php if (isset($messages)) echo $messages; ?>

            <div id="submenu-container" class="span-17 last">
                <?php $this->load->view('menu/profile'); ?>
            </div>

            <form action="" method="post">
            <fieldset class="span-16 last box">
                <legend class="caps"><?=lang('profile.glider.Edit')?></legend>
	            <div class="span-16 last">
	                <p>
						<label for="glider"><?php echo GliderModel::getGliderBrand($glider->brand) . ' '.$glider->model; ?></label>
					</p>
				    <p class="prepend-top">
				        <label for="serial"><?=lang('profile.glider.Serial_Number')?>: </label> 
				        <?php echo form_input('serial', $pilot_glider->serial)?>
				    </p>
					<p class="prepend-top">
						<label for="built">Built: </label> 
						<input type="text" name="built" id="dp0" readonly="readonly" size="10" maxlength="10" value="<?php echo $pilot_glider->built?>" />
					</p>
				    <p>
				        <label for="tested">Last tested made: </label> 
				        <input type="text" name="tested" id="dp1" readonly="readonly" size="10" maxlength="10" value="<?=$pilot_glider->tested?>" />
				    </p>
                </div>
                <div class="span-16 last">
                    <p><?php echo form_submit('action',lang('profile.glider.Update')); ?></p>
                </div>
            </fieldset>
            </form>
        </div> <!-- end content -->
        <div class="span-6 last" id="sidebar">
          <?php $this->load->view('menu/sidebar', array('person' => $person, 'context' => 'profile/glider'))?>
        </div> <!-- end sidebar -->
    </div> <!-- end container -->
</div> <!-- end main -->
<?php $this->load->view('footer/standard');?>
